package com.atguigu.jxc.controller;

import com.atguigu.jxc.service.GoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * User: fqy
 * Date: 2021/10/16
 * Time: 10:02
 * Describe:
 */
@RestController
@RequestMapping("goodsType")
public class GoodsTypeController {

    @Autowired
    private GoodsTypeService goodsTypeService;

    /**
     * 获取商品信息的树形结构
     * @return
     */
    @PostMapping("loadGoodsType")
    public String getGoodsTypeTreeCode(){
        return goodsTypeService.getGoodsTypeTreeCode();
    }


}
